package com.hfjava.practice05;

import java.util.Calendar;
import java.util.Scanner;

/**
 * @author Administrator
 * @version V1.0
 * @ProjectName:IntelliJ IDEA
 * @PackageName: com.hfjava.practice05
 * @ClassName: FatherDay
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @date 2019/12/21 10:00
 * @Copyright 大牛版板所有
 */
public class FatherDay {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("请输入一个年份：");
        int year = input.nextInt();
        Calendar ca = Calendar.getInstance();
        ca.set(Calendar.YEAR,year);
        ca.set(Calendar.MONTH,5);
        ca.set(Calendar.WEEK_OF_MONTH,4);
        ca.set(Calendar.DAY_OF_WEEK,1);
        System.out.println(year+"年的父亲节是这一年的第"+ca.get(Calendar.DAY_OF_YEAR)+"天");
    }
}
